/*
 * @Descripttion: your project
 * @version: 1.0
 * @Author: hongweixun
 * @Date: 2022-05-31 08:24:47
 * @LastEditors: liyin 2179253556@qq.com
 * @LastEditTime: 2023-02-14 11:03:53
 */

import { get,post } from '../../util/http'
export interface Params {
    faculty_id?: any,
    type?: any,
    id?: any,
    grade_id?: string,
    page?: number,
    page_size?: number
}
export interface Pay {
    mode: string,
    start_time?: string,
    end_time?: string,
    type?: number
}
interface params {
    mode: string,
    money: string
}
export interface adddb {
    adddb: params
}
export const getFacullyApi = (obj?: any) => get('/SchoolUser/Faculty/', obj)
export const getGradeApi = (obj?: any) => get('/SchoolUser/Grade/', obj)
export const getClassApi = (obj?: any) => get('/SchoolUser/Class/', obj)
export const getWorkerApi = (obj?: any) => get('/SchoolUser/Workers/', obj)
// 获取班级树
export const getTreeForClass = (obj: object) => get('/SchoolUser/Class/', obj)

export const apiPay = (dataJson: object) => get('/WeChatPay/', dataJson)
export const postPay = (dataJson: object) => post('/WeChatPay/', dataJson)

